package com.jichangxiu.system.entity.dto.edit;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jichangxiu.system.entity.bo.SysDeptBo;
import com.jichangxiu.system.entity.po.SysDept;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * EditSysDept:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(description = "系统部门表")
@AutoMappers({
        @AutoMapper(target = SysDept.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysDeptBo.class, reverseConvertGenerate = false)
})
public class EditSysDept implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;

    /**
     * 编码
     */
    @Schema(description = "编码")
    private String no;

    /**
     * 标识
     */
    @Schema(description = "标识")
    private String code;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 电话
     */
    @Schema(description = "电话")
    private String phone;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 父ID
     */
    @Schema(description = "父ID")
    private String parentId;

    /**
     * 负责人
     */
    @Schema(description = "负责人")
    private String userId;

    /**
     * 顺序
     */
    @Schema(description = "顺序")
    private BigDecimal sort;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 是否启用
     */
    @Schema(description = "是否启用")
    private Boolean enabled;

    /**
     * 启用者
     */
    @Schema(description = "启用者")
    private String enabledBy;

    /**
     * 启用时间
     */
    @Schema(description = "启用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date enabledTime;

}